import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Myself from '@/components/Myself'
import MyselfRegist from '@/pages/Myself-regist'
import MyselfUser from '@/pages/Myself-user'
import GoodsList from '@/components/Goods-List'
import Classify from '@/components/Classify'
import GoodsCard from '@/components/GoodsCard'
import GoodsDetails from '@/components/Goods-details'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path:'/Myself',
      component:Myself,
    },
    {
      path:'/Myself/Regist',
      component:MyselfRegist,
    },
    {
      path:'/Myself/User',
      component:MyselfUser
    },
    {
      path:'/Classify',
      component:Classify
    },
    {
      path:'/GoodsCard',
      component:GoodsCard
    },
    {
      path:'/GoodsList/:type/:title',
      component:GoodsList
    },
    {
      path:'/GoodsDetails/:title',
      component:GoodsDetails
    }
  ]
})
